﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EOS.Framework.Tools.Aspects;

namespace EOS.Framework.Web.Mvc
{
    public class ControlAttachedEventArgs : EventArgs
    {
        private IMarkup _markup;

        [NotNull]
        public IMarkup Markup
        {
            get { return _markup; }
            set { _markup = value; }
        }

        private Control _control;

        [NotNull]
        public Control Control
        {
            get { return _control; }
            set { _control = value; }
        }

        public ControlAttachedEventArgs()
        {
        }

        [ParamNotNull("control"), ParamNotNull("markup")]
        public ControlAttachedEventArgs(Control control, IMarkup markup)
        {
            this._control = control;
            this._markup = markup;
        }
    }
}
